/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package logical_spaces.DAO;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author juan
 */
public class GraphicalLogicalSpaceDAO {
    
    public Connection conn;

    public GraphicalLogicalSpaceDAO(Connection conn) {
        this.conn = conn;
    }
    
    public ResultSet executeStatement( String sql ) {
        
        try {
            Statement statet = conn.createStatement();
            ResultSet resultSet = statet.executeQuery( sql );
            return resultSet;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
    
}
